﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CapstoneWinPhone.Data;
using System.Collections.ObjectModel;

namespace CapstoneWinPhone.ViewModels
{
    public class TimeStampViewModel : INotifyPropertyChanged
    {
        public string _weekRange;

            public string WeekRange
            {
                get { return _weekRange; }
                set
                {
                    if (value != _weekRange)
                    {
                        _weekRange = value;
                        NotifyPropertyChanged("WeeKRange");
                    }
                }
            }

            public ObservableCollection<Timestamps> _listOfWeeklyTimeStamps;

            public ObservableCollection<Timestamps> ListOfWeeklyTimeStamps
            {
                get { return _listOfWeeklyTimeStamps; }
                set
                {
                    if (value != _listOfWeeklyTimeStamps)
                    {
                        _listOfWeeklyTimeStamps = value;
                        NotifyPropertyChanged("ListOfHours");
                    }
                }
            }

            public string _totalHours;

            public string TotalHours
            {
                get { return _totalHours; }
                set
                {
                    if (value != _totalHours)
                    {
                        _totalHours = value;
                        NotifyPropertyChanged("TotalHours");
                    }
                }
            }

            public event PropertyChangedEventHandler PropertyChanged;
            private void NotifyPropertyChanged(String propertyName)
            {
                PropertyChangedEventHandler handler = PropertyChanged;
                if (null != handler)
                {
                    handler(this, new PropertyChangedEventArgs(propertyName));
                }
            }
        }
    }